package com.rustic.server.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class UpdateRoleDTO {
    /**
     * 会员ids
     */
    @NotNull(message = "请选择会员")
    @Size(min = 1, message = "请选择会员")
    @ApiModelProperty(value = "ids", dataType = "List")
    private List<Integer> ids;

    /**
     * 角色
     */
    @NotEmpty(message = "角色不能为空")
    @ApiModelProperty(value = "角色", dataType = "String")
    private String roles;
}
